package com.ldpp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author ：gongtan
 * @date ：Created in 2021/3/16 13:29
 * @description：
 * @modified By：
 */
@Data
@NoArgsConstructor
@TableName(value = "`tick_md`")
public class TickMin {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //分钟级开盘价
    @TableField(value = "open")
    private Integer open;

    //分钟级收盘价
    @TableField(value = "close")
    private Integer close;

    //分钟级最高价
    @TableField(value = "high")
    private Integer high;

    //分钟级最底价
    @TableField(value = "low")
    private Integer low;

    //时间 分时
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    //交易所
    @TableField(value = "exchange")
    private String exchange;

    //交易代码
    @TableField(value = "wind_code")
    private String windCode;

    //tick 等级  -分钟级别 / 秒级
    private String interval;

}
